package cn.yunhe.action;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by Administrator on 2017/6/30.
 */
public class JiSuanAction extends ActionSupport {

    private int num1;
    private int num2;
    private int result;

    public String execute() throws Exception {
        result = num1 / num2;
        return INPUT;
    }

    public int getNum1() {
        return num1;
    }

    public void setNum1(int num1) {
        this.num1 = num1;
    }

    public int getNum2() {
        return num2;
    }

    public void setNum2(int num2) {
        this.num2 = num2;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }
}
